<?php
include "config/config.php";
include "inc/database.php";
include "inc/functions.php";

$_SESSION["sql_log"] = array();

$query = "CREATE TABLE IF NOT EXISTS `song_rating` (
	`userID` int(11) unsigned NOT NULL,
	`songID` int(11) unsigned NOT NULL,
	`rating` tinyint(10) unsigned NOT NULL DEFAULT '0',
	KEY `playlistID` (`userID`,`songID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";

$db->query($query);

if (sizeof($_SESSION["sql_log"])) {

	echo "there were errors: <br>";
	echo show_sql();
		
}	else echo "all_done...";
?>
